import axios from '../../../axios'
export default{
      //提交理赔表单
      addClaims(data){
        console.log(data);
        return axios({
            url:'/claims/pushClaims',
            method:'post',
            data
        })
    },
      //销售元获取所有的理赔订单
      getClaims(params){
        return axios({
            url:'/claims/getClaims',
            method:'get',
            params
        })
    },
    //销售员修改理赔信息并提交
    modifyClaims(data){
        return axios({
            url:'/claims/modifyClaims',
            method:'post',
            data
        })
    },
    //管理员处理理赔信息
    applyClaims(data){
        return axios({
            url:'/claims/applyClaims',
            method:'post',
            data
        })
    },
    //管理员删除理赔信息
    deleteClaims(data){
        return axios({
            url:'/claims/deleteClaims',
            method:'post',
            data
        })
    },
}